export default class extends think.controller.base {
	indexAction(){
		const files = this.file();
		const ftp = think.service('ftp');

		return ftp.send(files).then((data) => {
			this.success(data);
		}).catch((e) => {
			this.status(500);
			this.fail(500, "文件上传失败");
		});
	}
};